package newTest.test9;

import newTest.test9.addDao.AcountDao;
import newTest.test9.addDao.MessageDao;

public class DaoFactory {
	
	public  UserDao userDao(){

		return new UserDao(connectionMaker());
	}
	
	public  AcountDao accountDao(){

		return new AcountDao(connectionMaker());
	}
	
	public  MessageDao messageDao(){

		return new MessageDao(connectionMaker());
	}
	
	
	public ConnectionMaker connectionMaker(){
		return new DUserDao();
	}

}